package static修饰符;

public class StudentDemo {
    public static void main(String[] args) {

        //可以通过类名调用
        Student.university="西京学院";

        Student s1 = new Student();
        s1.name = "姜恒星";
        s1.age = 20;

        //也可以通过对象名调用
//        s1.university = "西京学院";
        s1.show();
        Student s2 = new Student();
        s2.name = "姜";
        s2.age = 10;

//        s2.university = "西京学院";
       s2.show();
    }
}
